import os

WRITE_MODE = 'w'

file_name = '/Users/Zhuanz/Desktop/ExampleFiles/test.txt'

my_file = open(file_name, WRITE_MODE)

my_file.write('Line 1\n')
my_file.close()

file_name = '/Users/Zhuanz/Desktop/ExampleFiles/test.txt'
file_obj = open(file_name)
lines = file_obj.readlines()
print(lines)
file_obj.close()
